package com.ayou.eggguard.farm.mapper;

import com.ayou.eggguard.farm.pojo.CoopEnvironmentInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface EnvironmentMapper {

    @Select("select * from coopenvironmentinfo where coop_id=\n" +
            "(select chickencoop.coop_id from chickencoop where coop_number=#{coopNumber})")
    CoopEnvironmentInfo getCoopEnvironment(String coopNumber);
}
